//
//  ProductDetailEvaluationHeader.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/21.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CommonEvaluateModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface ProductDetailEvaluationHeader : UICollectionReusableView

@property (weak, nonatomic) IBOutlet UIImageView *userIcon;

@property (weak, nonatomic) IBOutlet UILabel *starLab;


@property (weak, nonatomic) IBOutlet UILabel *userName;

@property (weak, nonatomic) IBOutlet UILabel *evaluationTime;

@property (weak, nonatomic) IBOutlet UILabel *evaluationContent;

@property (weak, nonatomic) IBOutlet UICollectionView *collectionview;

//点赞按钮
@property (weak, nonatomic) IBOutlet UIButton *thumbBtn;


@property (weak, nonatomic) IBOutlet NSLayoutConstraint *infoHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *evaluateTextHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *collectionViewHeight;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *thumbHeight;



@property (nonatomic, strong) CommonEvaluateModel *model;

- (void)fillHeadWithModel:(CommonEvaluateModel *)model;

+ (CGFloat)calculateHeightWithModel:(CommonEvaluateModel *)model;

@end

NS_ASSUME_NONNULL_END
